#!/usr/bin/python
#coding: utf-8
__author__ = 'czyigy'
import logging
import os
import logging.config
import datetime

# logger.basicConfig(filename = os.path.join(os.getcwd(), 'logs/srserver.log'),level = logger.INFO, filemode = 'a', format = '%(asctime)s - %(levelname)s: %(message)s')

logging.config.fileConfig("logger.conf")
logger = logging.getLogger("root")

def init_logging():
    file_path = './logs/{today_date}'.format(today_date = str(datetime.date.today))
    if not os.path.exists(file_path):
        os.mkdir(file_path)
